package com.xzp.blog.entity.vo;

import com.xzp.blog.entity.Article;

import java.util.Date;

/**
 * 后台博客文章网格视图
 * 博客管理界面--该视图不包含文章内容
 */
public class ArticleDataGridView {
    private Integer id;

    private String title;

    private Date gmtCreate;

    private Date gmtModified;

    private String introduction;

    public ArticleDataGridView(Article article) {
        this.id = article.getId();
        this.title = article.getTitle();
        this.gmtModified = article.getGmtModified();
        this.gmtCreate = article.getGmtCreate();
        this.introduction = article.getIntroduction();
    }

    public ArticleDataGridView() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }
}
